package com.example.demo.model;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data//里面包含了Setter和Getter
@ConfigurationProperties(prefix = "mylist2")//读取MyList配置文件将其dbtype给当前MyList集合赋值
@Component
public class MyList {
    private List dbtype;//必须与配置文件中的属性一样
}
